home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / etc / network / if-pre-up.d / ethtool next >
Text File  |  2009-04-28  |  316b  |  13 lines

  1. #!/bin/sh
  2.  
  3. ETHTOOL=/usr/sbin/ethtool
  4.  
  5. test -x $ETHTOOL || exit 0
  6.  
  7. # Gather together the mixed bag of settings applied with -s/--change
  8. SETTINGS="\
  9. ${IF_ETHERNET_PORT:+ port $IF_ETHERNET_PORT}\
  10. ${IF_DRIVER_MESSAGE_LEVEL:+ msglvl $IF_DRIVER_MESSAGE_LEVEL}\
  11. "
  12. [ -z "$SETTINGS" ] || $ETHTOOL --change "$IFACE" $SETTINGS
  13.